import { createApp } from 'vue'
import { createPinia } from 'pinia'
//引入ElementPlus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//引入所有图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import App from './App.vue'
import router from './router'

//app
const app = createApp(App)
//所有图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component)
    }

app.use(createPinia())
app.use(router)
//使用ElementPlus
app.use(ElementPlus)

app.mount('#app')
